package classes.command.dynamiccalendar
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.adobe.cairngorm.commands.ICommand;
	import classes.event.dynamiccalendar.DynamicCalendarMonthClickedEvent;
	import classes.model.CoreModelLocator;
	
	public class DynamicCalendarMonthClickedCommand implements ICommand
	{
		private static var _model:CoreModelLocator = CoreModelLocator.getInstance();
		/**
		 * Constructor
		 */
	  	public function DynamicCalendarMonthClickedCommand() : void {
		
		}//end constructor
		
		/**
		 * The main function assocaited wtih this command
		 * 
		 * @param	event	The source event
		 */ 
		public function execute( event : CairngormEvent ) : void
		{
			if(event is DynamicCalendarMonthClickedEvent){
				trace("event");

				_model.dCalStackViews.selectedIndex = 2;
			}//end if
			
		}//end execute (function)
		
		
		
		
		
	}//end class
}//end package

